﻿namespace Renci.Data.Interop.OpenGIS.Gml.Common
{
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public class SecondsType
    {
        /// <remarks/>
        [System.Xml.Serialization.XmlTextAttribute()]
        public decimal Value { get; set; }

        /// <remarks/>
        public static implicit operator SecondsType(decimal d)
        {
            return new SecondsType() { Value = d };
        }

        /// <remarks/>
        public static implicit operator decimal(SecondsType c)
        {
            return c.Value;
        }

        /// <summary>
        /// Converts to <see cref="SecondsType"/> type.
        /// </summary>
        /// <param name="d">Value to convert.</param>
        /// <returns></returns>
        public static SecondsType ToSecondsType(decimal d)
        {
            return (SecondsType)d;
        }

        /// <summary>
        /// Converts from <see cref="SecondsType"/> type.
        /// </summary>
        /// <param name="c">Value to convert.</param>
        /// <returns></returns>
        public static decimal FromSecondsType(SecondsType c)
        {
            return (decimal)c;
        }
    }
}
